package com.yupi.yuaicodemother.ai.guosai;

import cn.hutool.db.PageResult;
import com.yupi.yuaicodemother.mapper.ProjectsMapper;
import com.yupi.yuaicodemother.model.vo.AppProjectsListRespVO;
import com.yupi.yuaicodemother.model.vo.AppProjectsPageReqVO;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;


/**
 * 项目信息 Service 实现类
 *
 * @author 芋道源码
 */
@Service
@Validated
public class ProjectsServiceImpl implements ProjectsService {

    @Resource
    private ProjectsMapper projectsMapper;
    @Override
    public PageResult<AppProjectsListRespVO> getProjectsPageWithCreatorName(AppProjectsPageReqVO pageReqVO) {
        return projectsMapper.selectAllProjectsWithCreatorName(pageReqVO);
    }

    @Override
    public void updateProjectStatus(Long id) {
        projectsMapper.updateProjectStatus(id);
    }
}
